package org.cpar.compiler.nodes;

import org.antlr.runtime.Token;
import org.cpar.compiler.CPARNode;
import org.cpar.compiler.ICodeWriter;

public class TaskSpec extends CPARNode {

	public TaskSpec(Token nextToken) {
		super(nextToken);
	}

	public void accept(ICodeWriter writer) {
		writer.visit(this);
	}

	public CPARNode getTaskName() {
		return (CPARNode) getChild(0);
	}

	public CPARNode getArgs() {
		return (CPARNode) getTaskName().getChild(0);
	}

	public CPARNode getArgsBegin() {
		return (CPARNode) getChild(1);
	}

}
